package com.gxa.modules.deviceManager.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gxa.modules.deviceManager.form.EquipmentClassificationForm;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@TableName("y_equipment_classification")
public class EquipmentClassification implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("classify_name")
    private String classifyName;
    @TableField("add_people")
    private String addPeople;
    @TableField("add_time")
    private Date addTime;

    public EquipmentClassification(EquipmentClassificationForm equipmentClassificationForm) {
        this.id = equipmentClassificationForm.getId();
        this.classifyName = equipmentClassificationForm.getClassifyName();
        this.addPeople = equipmentClassificationForm.getAddPeople();
        this.addTime = equipmentClassificationForm.getAddTime();
    }
}
